<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
table, td, th{	border:0px solid black; }
th{	background-color:skyblue; color:white; font-size:20px; }
td{	background-color:gainsboro ;font-size:18px; text-align:center;}
</style>
<script type="text/javascript" src="./jquery-1.7.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("input:button").click(function(){
		location.href="factory.do?command=updateMachine&mc_id="+$(this).attr("name");
	});
});
</script>
</head>
<body>
<br>
<br>
<table>
	<tr>
		<th>제 1공정 분쇄</th>
		<th>제 2공정 압축</th>
		<th>제 3공정 천공</th>
	</tr>
	<tr>
		<td><img src="/BF_MES/img/cut.png" width="80px" height="200px"></td><!--  style="vertical-align:middle;"></td> vspace="100" hspace="30"></td> -->
		<td><img src="/BF_MES/img/sum.png" width="200px" height="200px"></td><!--  style="vertical-align:middle;"></td> vspace="100" hspace="30"></td> -->
		<td><img src="/BF_MES/img/hole.png" width="80px" height="200px"></td><!--  style="vertical-align:middle;"></td> vspace="100" hspace="30"></td> -->
	</tr>
	<tr>
	<c:forEach items="${requestScope.mcInfo }" var="mc" >
		<td>${mc.lot_op_hp}</td>		
	</c:forEach>
	</tr>
	<tr>
	<c:forEach items="${requestScope.mcInfo }" var="mc" >
		<td><input type="button" value="기계 점검" id="fix" name="${mc.mc_id }"></td>	
	</c:forEach>
	</tr>
</table>
</body>
</html>